package com.hydong.novatest.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.hydong.novatest.R;
import com.hydong.novatest.entity.StarObject;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * 星体列表
 */
public class StarAdapter extends BaseQuickAdapter<StarObject, BaseViewHolder> {
    public StarAdapter(@Nullable List<StarObject> data) {
        super(R.layout.item_star_object, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, StarObject starObject) {
        baseViewHolder.setText(R.id.tv_info, "RA:" + starObject.getRaJnowStr() + "    DEC:" + starObject.getDecJnowStr() + "    Name:" + starObject.getName());
    }
}
